var limsProductMainPupose = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            field: 'productCode',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.PRODUCTCODE'
        }, {
            field: 'defaultresult',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.DEFAULTRESULT'
        }, {
            field: 'resulttype',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.RESULTTYPE'
        }, {
            field: 'unit',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.UNIT'
        }, {
            field: 'formula',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.FORMULA'
        }, {
            field: 'roundingrule',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.ROUNDINGRULE'
        }];
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'productCode',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.PRODUCTCODE',
            validators: ['strLength[0,33]']
        }, {
            field: 'defaultresult',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.DEFAULTRESULT',
            validators: ['strLength[0,33]']
        }, {
            field: 'resulttype',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.RESULTTYPE',
            validators: ['strLength[0,33]']
        }, {
            field: 'unit',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.UNIT',
            validators: ['strLength[0,33]']
        }, {
            field: 'formula',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.FORMULA',
            validators: ['strLength[0,166]']
        }, {
            field: 'roundingrule',
            title: 'T_LIMS_PRODUCT_MAIN_PUPOSE.ROUNDINGRULE',
            validators: ['strLength[0,66]']
        },];
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/coredata/product-main-puposes'
});
